package com.fc.test.common.exception;

import com.fc.test.common.exception.enums.QiNiuErrorEnum;

/**
 * QiNiuException
 *
 * @author bobbi
 * @date 2018/10/07 13:54
 * @email 571002217@qq.com
 * @description 自定义异常
 */
public class DataException extends RuntimeException{
	private static final long serialVersionUID = 1L;
	private String msg;
    private int code = 500;

    public DataException(){

    }


    public DataException(String exception){
		super(exception);
       this.msg=exception;
    }


	public String getMsg() {
		return msg;
	}


	public void setMsg(String msg) {
		this.msg = msg;
	}


	public int getCode() {
		return code;
	}


	public void setCode(int code) {
		this.code = code;
	}

	public DataException(String msg, int code) {
		super();
		this.msg = msg;
		this.code = code;
	}
    
}
